package com.bw.controller;

import cn.hutool.core.lang.Dict;
import com.bw.entity.Bing;
import com.bw.entity.Zhexiantu;
import com.bw.mapper.UserMapper;
import com.bw.mapper.ZxtMapper;
import org.spring.kun.common.ExcelUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

@Controller
public class EchartsController {

    @Autowired
    ZxtMapper zxtMapper;


    @RequestMapping("/echartsPage.do")
    public String echartsPage(Model model) {

        return "echartsPage";
    }


    @RequestMapping("/zxt.do")
    @ResponseBody
    public List<Zhexiantu> zxt(Integer y) {

        return zxtMapper.zxt(y);
    }



}
